package cn.b.sky.mes.qm.service;

import java.util.List;

import cn.b.sky.common.model.BatchJobReport;
import cn.b.sky.mes.qm.model.DefectType;
import cn.b.sky.mes.qm.model.condition.DefectTypeCondition;

public interface DefectTypeService {

  List<DefectType> selectDefectTypeListByCondition(DefectTypeCondition condition);

  int selectDefectTypeCountByCondition(DefectTypeCondition condition);

  DefectType getDefectType(String siteCode, String defectTypeCode);

  void insertDefectType(DefectType defectType);

  void updateDefectType(DefectType defectType);

  BatchJobReport deleteDefectType(String siteCode, String defectTypeCode);

  /**
   * 
   * <strong>Title : selectDefectTypeForSuggest<br></strong>
   * <strong>Description : </strong>缺陷类型搜索建议<br> 
   * <strong>Create on : 2016年4月11日 下午8:29:16<br></strong>
   * <p>
   * @param condition
   * @return
   * List<DefectType>
   * @throws 
   * @author zhaoxin01<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  List<DefectType> selectDefectTypeForSuggest(DefectTypeCondition condition);
}
